using System;
using System.Collections.Generic;
using System.Text;
using ManagedKeySimulator;

namespace VoiceCommander.Configuration
{
	internal class SpecialKeyTranslator
	{
		public static int Translate(SpecialType special)
		{
			switch (special)
			{
				case SpecialType.Alt:
					return Key.VK_MENU;

				case SpecialType.Control:
					return Key.VK_CONTROL;

				case SpecialType.Delete:
					return Key.VK_DELETE;

				case SpecialType.End:
					return Key.VK_END;

				case SpecialType.Enter:
					return Key.VK_RETURN;

				case SpecialType.F1:
					return Key.VK_F1;

				case SpecialType.F2:
					return Key.VK_F2;

				case SpecialType.F3:
					return Key.VK_F3;

				case SpecialType.F4:
					return Key.VK_F4;

				case SpecialType.F5:
					return Key.VK_F5;

				case SpecialType.F6:
					return Key.VK_F6;

				case SpecialType.F7:
					return Key.VK_F7;

				case SpecialType.F8:
					return Key.VK_F8;

				case SpecialType.F9:
					return Key.VK_F9;

				case SpecialType.F10:
					return Key.VK_F10;

				case SpecialType.F11:
					return Key.VK_F11;

				case SpecialType.F12:
					return Key.VK_F12;

				case SpecialType.Home:
					return Key.VK_HOME;

				case SpecialType.PageDown:
					return Key.VK_NEXT;

				case SpecialType.PageUp:
					return Key.VK_PRIOR;

				case SpecialType.Shift:
					return Key.VK_SHIFT;

				case SpecialType.Space:
					return Key.VK_SPACE;
			}

			return 0;
		}
	}
}
